<div class="actions">
    <div ng-click="showVideoList()" class="action on-right">Back</div>
</div>

<form name="videoEditForm" class="form-horizontal" role="form">
    <div class="form-group input">
        <label class="control-label col-sm-2" for="title">Title<span class="required">*</span></label>
        <div class="col-sm-6 controls">
            <input id="title" name="title" class="form-control"  ng-model="video.title" required>
        </div>
    </div>
    <div class="form-group input">
        <label class="control-label col-sm-2" for="url">URL<span class="required">*</span></label>
        <div class="col-sm-6 controls">
            <input id="url" name="url" type="url" ng-pattern="/http\:\/\/v\.youku\.com\/v_show\/id_.+\.html/"
                   placeholder="http://v.youku.com/v_show/id_XNTc2NDczNzcy.html" class="form-control"  ng-model="video.url" required>
        </div>
    </div>
    <div class="form-group textarea">
        <label class="control-label col-sm-2" for="descr">Description</label>
        <div class="col-sm-6 controls">
            <textarea id="descr" name="descr" class="form-control" rows="3"  ng-model="video.descr"></textarea>
        </div>
    </div>

    <div class="form-group button">
        <label class="control-label col-sm-2"></label>
        <div class="controls col-sm-6">
            <button ng-disabled="videoEditForm.$invalid" ng-click="saveVideo()" class="btn btn-primary">Submit</button>&nbsp;&nbsp;
            <button ng-click="reset()" type="reset" class="btn">Reset</button>
        </div>
    </div>
</form>
